<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="head.htm"/>
</head>
<body>
	<div id="head"><h1>HotelOrganizer</h1></div>
	<jsp:include page="menu-hotel.htm"/>
	<div id="content">
		<h2><c:out value="${title}"/></h2>
		<p><c:out value="${message}"/></p>
		<form method="post" action="SaveZimmer.html">
			<table class="editing">
				<colgroup>
					<col class="attribute"/>
					<col class="value"/>
				</colgroup>
				<tbody>
					<tr>
						<td>Zimmer-Nr.:</td>
						<td>
 							<input type="hidden" name="id" value='<c:out value="${zimmer.id}"/>' size="2" /> 
							<input type="text" name="nr" value='<c:out value="${zimmer.nr}"/>' size="2" />
						</td>
					</tr>
					<tr>
						<td>Anzahl der Betten:</td>
						<td>
							<input type="text" name="betten" value='<c:out value="${zimmer.betten}"/>' size="2" />
						</td>
					</tr>	
					<tr>
						<td>Quadratmeter:</td>
						<td>
							<input type="text" name="qm" value='<c:out value="${zimmer.qm}"/>' size="2" />
						</td>
					</tr>
					<tr>
						<td>Raucherzimmer:</td>
						<td>
						<select name="raucher" size="1">
						<option value="false">nein</option>
						<option value="true">ja</option>
						</select> 
						</td>
					</tr>
					
					<tr>
						<td>Haustiere erlaubt:</td>
						<td>
						<select name="haustier" size="1">
						<option value="false">nein</option>
						<option value="true">ja</option>
						</select>
						</td>
					</tr>
					
					<tr>
						<td>Kategorie:</td>     <!-- per Dropdown-Liste alle anzeigen -->
						<td>
					<select name=kategorie size=1>
										<c:forEach items="${kategorien}" var="kategorie">
										<option value="${kategorie.id}">${kategorie.bezeichnung}</option>
									</c:forEach>
					</select>
						</td>
					</tr>
					<tr class="submit">
						<td colspan="2">
								<input type="submit" value=" Änderungen übernehmen "/>
						</td>
					</tr>
				</tbody>
			</table>
		</form>
	</div>
</body>
</html> 